<p>
  useredit works!
</p>
<div *ngIf="user">
  <form #editForm="ngForm" (ngSubmit)="onSubmit(editForm)">
    <label>
        id:
        <input name="id" [(ngModel)]="user.id" required />
    </label>
    <label>
        name:
        <input name="name" [(ngModel)]="user.name" required minlength="4" />
    </label>
    <div>
        <button class="btn btn-success" type="submit" [disabled]="!editForm.form.valid">Submit</button>&nbsp;&nbsp;
        <button class="btn btn-warning" type="button" (click)="back()">Back</button>
    </div>
    <div *ngIf="submitResult">
        sumbit result:
        <p >
           {{submitResult | password}}
        </p>
        <p >
          {{submitResult}}
        </p>
    </div>
  </form>
</div>
